package com.blockmeta.bbs.businesslibrary.widget.scale;

import android.app.Activity;
import android.content.Context;
import android.view.View;
import android.widget.ImageView;

import com.blockmeta.bbs.businesslibrary.R;
import com.blockmeta.bbs.businesslibrary.business.UmengEvent;
import com.blockmeta.bbs.businesslibrary.constant.Constant;


/**
 * Created by author on 2018/5/18.
 */

public class BannerScalePopupWindow extends BaseScalePopupWindow {
    public ImageView banner;
    private Context mContext;


    public BannerScalePopupWindow(Activity context) {
        super(context);
        this.mContext = context;

    }

    @Override
    public int getResId() {
        return R.layout.popup_scale_banner;
    }

    @Override
    protected void bindEvent() {
        if (popupView != null) {
            banner = popupView.findViewById(R.id.banner_img);
        }
    }

    @Override
    public View getClickToDismissView() {
        if (mContext != null) {
            UmengEvent.eventStatistics(mContext, Constant.U_activity_toast_cancel, null);
        }
        return popupView.findViewById(R.id.click_to_dismiss);
    }

    @Override
    public View initAnimaView() {
        return popupView.findViewById(R.id.popup_anima);
    }
}
